package com.ws.lv.service;

import com.ws.lv.bean.Order_info;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public interface Order_infoService {
    List<Order_info> selectOrder_infos(@Param("user_name") String user_name, @Param("route_name") String route_name);

    int updateOrder_infoByState(int order_info_id);

    int deleteOrder_infos(ArrayList<Integer> orderInfoIds);

    Order_info selectOrder_infoByUserIdAndRouteId(@Param("order_info_userId") int order_info_userId, @Param("order_info_routeId") int order_info_routeId);

    int insertOrder_info(Order_info order_info);

    List<Order_info> selectOrder_infosByUserId(int user_id);

    int deleteOrder_infoByUserId(int user_id);

    int deleteOrder_infoByRouteId(int route_id);
}
